all: main

CXX := g++
LD := ${CXX}

# Flags to enable link-time optimization and GDB
LTO := -flto
ENABLE_DGB :=

PARAL_PY_HOME := ./

INC	:= -I ${PARAL_PY_HOME}

#DEBUG := -DNDEBUG
CPPFLAGS := ${ENABLE_DGB} ${LTO} ${DEBUG} -std=c++11 ${INC} -Wall \
	-Wno-unused-result -Wno-unused-value -Wno-unused-function \
	-Winline

LDFLAGS := ${ENABLE_DGB} ${LTO}


src := paral_py_tool.o paral_py_lex.o paral_py_scan.o paral_py_trans.o \
	input_paral_fun_MR_tool.o input_paral_fun_MR_lex.o paral_py_ast.o main.o

main: ${src}
	${LD} -o $@ $^ ${LDFLAGS}

PHONY: clean
clean:
	rm -f *.o main ${src}
